<template>
  <div class="text">
    <span class="title">{{index}}.{{question.title}}</span>
    <span class="title" v-if="question.isNecessary === true" style="color: salmon">*</span>
    <span class="type">&ensp;&ensp;&ensp;[多选题]</span>
    <br>
    <div v-for="option in question.options">
      <span class="option" v-if="option.isChoosed === true">{{ option.text }}</span>

    </div>
  </div>
</template>

<script>
export default {
  name: "Checkbox",
  props: {
    question: Object,
    index: Number,
    time: String
  }
}
</script>

<style scoped>
  .text {
    text-align: left;
  }
  .title {
    font-weight: bold;
    color: black;
    font-size: 20px;
  }

</style>